var VideoRigolo = new Object();
VideoRigolo.rev           = 1;
VideoRigolo.SearchDesc    =
VideoRigolo.Name          = "VideoRigolo";
VideoRigolo.Search        = function (keyword, page)
{
	var result = new Object();
	result.bypage    = 53;
	result.start     = (page-1)*result.bypage+1;

	c=GetContents('http://www.videorigolo.com/s-'+escape(keyword)+'-'+page+'-1-1.html');
	result.total     = -1;
	result.VideoInfo = new Array();
	while(p=c.indexOf('<a href="/v',p)+1)
	{
		video = new Object();
		video.attr          = 3;
		video.ThumbnailURL  = 'http://www.videorigolo.com'+ext('<img src="','"');
		video.id            = video.ThumbnailURL.match(/.*?videos\/(.*)/)[1];
		video.Title         = ext('<b>','</b>')+'\n';
		video.Description   = ext('8px;">','<a href="')+ext('">','</a>')+'\n'+ext('<i>','</i>');
		video.SaveFilename  = video.Title+".flv";
		video.URL           = VideoRigolo.play(video.id);
		result.VideoInfo.push(video);
	}
	result.end = result.start-1+result.VideoInfo.length;
	return result;
}

VideoRigolo.play = function(id)
{
	return 'http://www.videorigolo.com/videos/'+video.id+'.flv';
}
SiteList.push(VideoRigolo);